﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace TermitesMagnets
{
    class Command
    {
        public enum CommandType
        {
            GoTo,
            Interrupt,
            TakePowerUp,
            Sleep,
            MagnetOn,
            MagnetOff,
            EndInterrupt,
            Stop
        };

        Vector2 position;
        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }

        CommandType commandType;
        internal CommandType CmdType
        {
            get { return commandType; }
            set { commandType = value; }
        }

        private double sleep;
        public double Sleep
        {
            get { return sleep; }
            set { sleep = value; }
        }

        private Command nextCommand;
        internal Command NextCommand
        {
            get { return nextCommand; }
            set { nextCommand = value; }
        }

        private int maxSpeed;
        public int MaxSpeed
        {
            get { return maxSpeed; }
            set { maxSpeed = value; }
        }

        public Command(CommandType type)
        {
            this.commandType = type;
            nextCommand = null;
            maxSpeed = 100;
        }
    }
}
